package org.willthink.service.main.impl;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.willthink.dao.main.MainDAO;
import org.willthink.service.main.MainService;

public class MainServiceImpl implements MainService{

	private MainDAO dao;
	
	public void setDao(MainDAO dao) {
		this.dao = dao;
	}

	@Override
	public List<List> getMenuList(String authNo) throws SQLException {
		
		List<Map<String, String>> originList = dao.getMenuList(authNo);
		
		List list = new ArrayList();
		
		int originListSize = originList.size();
		for(int i=0; i<originListSize; i++){
			Map<String, String> map = originList.get(i);
			list.add(map);
			
		}
		return list;
	}

	
}
